import Vue from "vue";
import VueRouter from "vue-router";
import Home from "../views/home.vue";
import List from "../views/list.vue";
import CountDown from "../views/count-down.vue";

Vue.use(VueRouter);

export const routes = [
	{
		path: "/",
		name: "home",
		component: Home,
		meta: {
			name: "首页",
			icon: "home",
		},
	},
	{
		path: "/list",
		name: "list",
		component: List,
		meta: {
			name: "清单",
			icon: "assignment",
		},
	},
	{
		path: "/count-down",
		name: "count-down",
		component: CountDown,
		meta: {
			name: "倒计时",
			icon: "schedule",
		},
	},
	{
		path: "**",
		redirect: "/",
		meta: {
			hide: true,
		},
	},
];
